package com.reform.pojo.phase;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author mortale
 * @since 2021-06-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("Batch_info")
@ApiModel(value="BatchInfo对象", description="VIEW")
public class BatchInfo implements Serializable {

    @ApiModelProperty(value = "批次编号")
    @TableId("batch_id")
    private String batchId;

    @ApiModelProperty(value = "批次名称(输入)", required = true)
    @TableField("batch_name")
    private String batchName;

    @ApiModelProperty(value = "所属单位", required = true)
    @TableField("company")
    private String company;

    @ApiModelProperty(value = "批次级别编号", required = true)
    @TableField("level_id")
    private Integer levelId;

    @ApiModelProperty(value = "最大主持数", required = true)
    @TableField("max_host")
    private Integer maxHost;

    @ApiModelProperty(value = "最大参与数", required = true)
    @TableField("max_participants")
    private Integer maxParticipants;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "中期时间提醒")
    @TableField("middle_time")
    private LocalDate middleTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结项时间提醒")
    @TableField("post_time")
    private LocalDate postTime;

    @ApiModelProperty(value = "批次级别名称", required = true)
    @TableField("level_name")
    private String levelName;

    @ApiModelProperty(value = "阶段检查编号")
    @TableId(value = "phase_id")
    private String phaseId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "教师申报开始时间(yyyy-MM-dd)")
    @TableField("phase_teacher_start")
    private LocalDate phaseTeacherStart;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "教师申报结束时间(yyyy-MM-dd)")
    @TableField("phase_teacher_end")
    private LocalDate phaseTeacherEnd;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "学院检查开始时间(yyyy-MM-dd)", required = true)
    @TableField("phase_department_start")
    private LocalDate phaseDepartmentStart;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "学院检查结束时间(yyyy-MM-dd)", required = true)
    @TableField("phase_department_end")
    private LocalDate phaseDepartmentEnd;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "学校检查一审开始时间(yyyy-MM-dd)")
    @TableField("phase_school_first_start")
    private LocalDate phaseSchoolFirstStart;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "学校检查一审结束时间(yyyy-MM-dd)")
    @TableField("phase_school_first_end")
    private LocalDate phaseSchoolFirstEnd;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "专家检查开始时间(yyyy-MM-dd)")
    @TableField("phase_expert_start")
    private LocalDate phaseExpertStart;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "专家检查结束时间(yyyy-MM-dd)")
    @TableField("phase_expert_end")
    private LocalDate phaseExpertEnd;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "学校检查二审开始时间(yyyy-MM-dd)")
    @TableField("phase_school_second_start")
    private LocalDate phaseSchoolSecondStart;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "学校检查二审结束时间(yyyy-MM-dd)")
    @TableField("phase_school_second_end")
    private LocalDate phaseSchoolSecondEnd;

    @ApiModelProperty(value = "类型(1 =>立项  2 => 中期   3=>结项)")
    private Integer type;

    @ApiModelProperty(value = "分类编号")
    @TableField(value = "classify_id")
    private Integer classifyId;

    @ApiModelProperty(value = "分类名称")
    @TableField("classify_name")
    private String classifyName;

    @ApiModelProperty(value = "批次状态（-1 申报 0学院审核 1学校初审 2专家审核 3学校二审）")
    private Integer status;

}
